package com.boho.ecp.manage.service.param.service;

import java.sql.Connection;

import cn.boho.framework.po.POUtils;

import com.boho.ecp.constant.Product;
import com.boho.ecp.po.TSystemParaPO;

public class ParamService {

	public static void updateParam(Connection con, Integer point, String key) throws Exception{
		TSystemParaPO cPO = new TSystemParaPO();
		TSystemParaPO vPO = new TSystemParaPO();
		cPO.setSystemParaDesc(key);
		vPO.setSystemParaValues(String.valueOf(point));
		POUtils.update(con, cPO, vPO, false);
		
		Product.POINT_RATE = point;
	}
	
}
